import os

class Utils:
	def MakeDirs(path):
		print(path)
		index = path.find("/")
		if (index > -1):
			dirname = path[:index]
			print(dirname)
			if (not os.path.exists(dirname)):
				os.mkdir(dirname)
			Utils._MakeDires(dirname, path[index + 1:])

	def _MakeDires(prePath, path):
		index = path.find("/")
		if (index > -1):
			dirname = prePath + "/" + path[:index]
			print(dirname)
			if (not os.path.exists(dirname)):
				os.mkdir(dirname)
			Utils._MakeDires(dirname, path[index + 1:])